import 'package:mall/modules/model/category_entity.dart';
import 'package:json_annotation/json_annotation.dart';

part 'category_title_entity.g.dart';

@JsonSerializable()
class CategoryTitleEntity {
  CategoryEntity? currentCategory;
  List<CategoryEntity>? brotherCategory;
  CategoryEntity? parentCategory;

  CategoryTitleEntity({
    this.currentCategory,
    this.brotherCategory,
    this.parentCategory,
  });

  factory CategoryTitleEntity.fromJson(Map<String, dynamic> json) => _$CategoryTitleEntityFromJson(json);

  Map<String, dynamic> toJson() => _$CategoryTitleEntityToJson(this);
}

